package main;

import observerNotification.ObserverNotification;
import view.ViewController;


/**
 * Main class.
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ObserverNotification
 */
public class ChatSystem {

	/**
	 * Enable to display or not the debug messages
	 */
	public static boolean debugMode=true;			//Static variable that enable to display or not the debugging messages
	/**
	 * Port on which the app can receive udp messages
	 */
	public static int udpPort  = 3000;				//Static variable countaining the port where the app receives the messages
	/**
	 * Was different from <i>udpPort</i> for testing purposes
	 */
	public static int udpPortEmit = 3000;			//Static variable countaining the port where the app sends the messages, usefull for testing on a single computer
													//otherwhise should be the same than udp port
	/**
	 * Testing purposes.
	 */
	public static boolean testOnSingleComputer = (udpPort!=udpPortEmit);	//boolean informing the receiver if he should chech the sender address or not
	/**
	 * Port on which the app can receive tcp <b>connections</b>
	 */
	public static int tcpPort = 3000;				//Static variable countaining the port where the app receives the tcp connections
	
	
	/**
	 * Creates a new ViewController, which actually starts the app.
	 * 
	 * @param args Nothing, really.
	 */
	public static void main(String [] args) {
		
		@SuppressWarnings("unused")
		ViewController v = new ViewController();
		
	}
	
	
}
